import request from '@/utils/request'

// 登录接口
export function login(data) {
  return request({
    url: '/auth/local',
    method: 'post',
    data
  })
}
// 注册接口
export function register(data) {
  return request({
    url: '/auth/local/register',
    method: 'post',
    data
  })
}
//经纪人接口
export function agents() {
  return request({
    url:"/agents",
    method:"get"
  })
}